<?php

namespace common\models\business;

use Yii;

/**
 * This is the model class for table "business_contract_sta_pur".
 *
 * @property string $id
 * @property integer $statements_id
 * @property integer $purchase_id
 * @property integer $contract_id
 */
class BusinessContractStaPur extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'business_contract_sta_pur';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['statements_id', 'purchase_id'], 'required'],
            [['statements_id', 'purchase_id', 'contract_id'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'statements_id' => 'Statements ID',
            'purchase_id' => 'Purchase ID',
            'contract_id' => 'Contract ID',
        ];
    }
}
